using System.ComponentModel;
using ModelContextProtocol.Server;

namespace Saury.MCPServer.Tools;

[McpServerToolType]
public static class TimeTool
{
    [McpServerTool, Description("获取指定城市的时间")]
    public static string GetCurrentTime(string city) =>
        $"It is {DateTime.Now.Hour}:{DateTime.Now.Minute} in {city}.";
}